﻿@{
    Layout = null;
}
@model List<demo86.Models.Result>
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="~/scripts/jquery-1.10.2.min.js"></script>
    <script src="~/scripts/bootstrap.min.js"></script>
    <link href="~/Content/bootstrap.css" rel="stylesheet" />
    <link href="~/Content/bootstrap.min.css" rel="stylesheet" />
    <title></title>
</head>
<body>
    <div>
        @using (Html.BeginForm("GetHtml", "Test", FormMethod.Post))
        {
            <div class="container">
                <button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo">查看新闻：</button>
                <div id="demo" class="collapse">
                    @ViewBag.Count<br />
                    @foreach (var item in Model)
                    {
                        <div>
                            <a href="@item.url">@item.title</a>&nbsp;&nbsp;&nbsp;&nbsp;@item.date<br />
                            <p>@item.Where</p><br />
                            <p>@item.Type</p><br />
                            <div>
                             @Html.Raw(item.content);
                            </div>
                            <hr />
                        </div>
                    }
                </div>
            </div>
        }
    </div>
</body>
</html>
